// .vitepress/theme/index.js
import DefaultTheme from "vitepress/theme";
import "element-plus/dist/index.css";
import elementplus from "element-plus";
import lwui from "../../../packages/index";

// 推送npm后可用
// import lwui from "lw-ui";
// import "lw-ui/lib/style.css";

import components from "../components/index";
export default {
  ...DefaultTheme,
  enhanceApp: async ({ app, router, siteData }) => {
    app.use(elementplus);
    app.use(lwui);
    components.forEach((item) => {
      app.component(item.name, item);
    });
  },
};
